package com.example.zx_springboot.service.iml;

import com.example.zx_springboot.entity.ZxRole;
import com.example.zx_springboot.entity.ZxUser;
import com.example.zx_springboot.mapper.Zx_URRMapper;
import com.example.zx_springboot.service.URRService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ZxURRiml implements URRService {
    @Autowired
  private Zx_URRMapper urrMapper;
    @Override
    public ZxUser selectUserById(int id) {
        ZxUser user=urrMapper.getUserByid(id);
        return user;
    }

    @Override
    public ZxRole selectRoleById(int id) {
        ZxRole role =urrMapper.selectresourcebyrole(id);
        return role;
    }
}
